package com.gdougms.mapper;

import com.gdougms.entity.Announcement;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface AnnouncementMapper {

    //添加公告
    int addAnnouncement(String title,String content,String fileUrl,Integer pubuserId);

    //查询
    @Select("select * from announcement")
    List<Announcement> announcementList();

}
